package proxy.d.extend;

import net.sf.cglib.proxy.Enhancer;

public class IntermediaryCglibProxyFactory {
    public static <T> T create(Class<T> clz){
        Enhancer enhancer=new Enhancer();
        enhancer.setSuperclass(clz);
        enhancer.setCallback(new IntermediaryMethodInterceptor());
        return (T)enhancer.create();
    }
}
